export default function(coder: any) {

    coder['math_positive_number'] = function(block: any) {
      // Numeric value.
      var code = parseFloat(block.getFieldValue('NUM'));
      var order = code >= 0 ? coder.ORDER_ATOMIC :
                  coder.ORDER_UNARY_NEGATION;
      return [code, order];
    };
    
  coder['math_whole_number'] = function(block: any) {
    var argument0 = block.getFieldValue('NUM')
    argument0 = parseInt(argument0)
    return [argument0.toString(), coder.ORDER_ATOMIC]
  }
}


